package com.ceit.service;

import com.ceit.model.Administrators;
import com.ceit.model.Manager;
import com.ceit.model.User;

import java.util.List;

/**
 * Created by 隼 on 2017/2/9.
 */
public interface AdministratorsS {

    public Administrators getadByuserID(Integer id)throws  Exception;

    public List<Administrators> getAdminList()throws  Exception;

    public  Administrators getByAno(String Ano)throws  Exception;

    public int getByNum(String Num)throws  Exception;

    public Boolean addUser(String Ano)throws  Exception;

    public  Boolean addADmin(Administrators administrators)throws  Exception;

    public  Boolean addUserRole(int userid,int roleid)throws  Exception;

    public  Boolean updateAD(Administrators administrators)throws Exception;


    public User getUserByuserid(int userid)throws Exception;

    public Boolean setPassword(String password,int userid) throws Exception;

    public Manager getByMno(String Mno)throws Exception;

    public Boolean addManage(Manager manager)throws Exception;
}
